﻿using System.Data;

namespace DataScripter.UnitTests.Comparison.DataTables
{
    static class DataTableFactory
    {
        public static DataTable CreateDataTable()
        {
            DataTable dataTable = new DataTable("Table1");
            DataColumn column = dataTable.Columns.Add("id", typeof(int));
            dataTable.Columns.Add("abc", typeof(string));
            dataTable.PrimaryKey = new[] { column };

            dataTable.Rows.Add(2, "abc");
            dataTable.Rows.Add(4, "ghi");
            dataTable.Rows.Add(9, "jkl");
            dataTable.Rows.Add(3, "def");

            return dataTable;
        }
    }
}
